package ModelLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class Test_af_DVD.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class Test_af_DVD
{
    /**
     * Default constructor for test class Test_af_DVD
     */
    public Test_af_DVD()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }


    @Test
    public void DVD()
    {
        ModelLayer.Dvd dvd1 = new ModelLayer.Dvd(1, "en go sang", "lars lilholt", "12061937");
        dvd1.createEksemplar("1000", "12061937", "128", "uden skrammer");
        dvd1.createEksemplar("1001", "12061987", "12", "næsten ny");
        dvd1.createEksemplar("1002", "12092000", "120", "få ridser");
        dvd1.print();
        assertEquals("1002", dvd1.searchEksemplar("1002"));
    }
}





